package com.ray.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ray.bean.DepartmentDropdownBean;
import com.ray.bean.DutyBean;
import com.ray.bean.MaterialTechnologyBean;
import com.ray.bean.OrderBean;
import com.ray.bean.OrderInfoDetailBean;
import com.ray.bean.ReportBean;
import com.ray.pojo.Department;

public interface MaterialTypeTechnologyMapper {

	/**
	 * 获取公司物料工艺
	 * @param status(状态  0使用  2禁用)
	 * @return
	 */
	List<MaterialTechnologyBean> getCompanyMaterialTechnology(Map map);
	int getCompanyMaterialTechnologyCount(Map map);
	
	/**
	 * 添加物料工艺
	 * @param materialType(物料类型)
	 * @param technology(工艺)
	 * @param id(id)
	 * @return
	 */
	void addMaterialTechnology(Map map);
	
	/**
	 * 
	 * @param id
	 * @param loginCompany 
	 * @return
	 */
	MaterialTechnologyBean getMaterialTechnologyBeanById(@Param("id")String id);
	
	/**
	 * 设置物料工艺状态
	 * @param id(id)
	 * @param status(状态)
	 * @return
	 */
	void setStatus(Map map);
	
	/**
	 * 修改物料工艺
	 * @param id(id)
	 * @param materialType(物料类型)
	 * @param technology(工艺)
	 * @return
	 */
	void updateMaterialTechnology(Map map);
	
	
	/**
	 * 从订单明细拓展表中获取订单明细信息
	 * @param orderNo(系统订单编号)
	 * @param lineNo(行号)
	 * @param materialFactory(仓位)
	 * @param materialType(物料类型)
	 * @return
	 */
	List<OrderInfoDetailBean> getOrderDatailFromExtend(Map map);
	/**
	 * 通过明细信息删除订单明细拓展信息
	 * @param detailList
	 * @return
	 */
	int deleteOrderDatailExtendByDetailList(@Param("detailList")List<OrderInfoDetailBean> detailList);
	/**
	 * 添加订单明细拓展信息
	 * @param detailList
	 * @return
	 */
	int insertOrderDatailExtendByDetailList(@Param("detailList")List<OrderInfoDetailBean> detailList);

	
}